//*********************************************************
//
// Output Registers used:
//   oT1 - reflection UV
//
//*********************************************************


m4x4 r0, inPos, c[MODEL_MATRIX]
sub r1, c[WORLD_SPACE_CAMERA_POS_OOFOG_RANGE], r0 // r1 = View vec

// pass through transformation matrix
m3x3 r2, inNormal, c[MODEL_MATRIX]	// r2 = Normal

dp3 r5.xyz, r2, r1		// r5.xyz = (V.N)
add r2.xyz, r2, r2			// r2 = 2 * Normal
mad r0.xyz, r5, r2, -r1		// r0 = 2N(V.N)-V


mov oT1, r0
